package class_03;

import java.util.Scanner;

public class aa {
    public static void main(String[] args) {
        String e_rule="\\w{1,}@[0-9a-zA-Z]{1,}\\.com\\.cn";
        String e_rule2="\\w{1,}[0-9]\\@[0-9a-zA-Z]{1,}\\.com";
        String e_rule3="\\w{1,}[0-9]\\@qq.com";
        String e_rule4="\\^[1][3,5,8][0-9]{9}";
        Scanner input=new Scanner(System.in);
        System.out.println("请输入账户名：");
        String email3 = input.next();
        String email="wgabcd@163.com.cn";
        String email2 = "wgabcd@qq";
        if(email3.matches(e_rule3)){
            System.out.println("验证通过");
        }else{
            System.out.println("输入非法");
        }
    }
}
